home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / basic / ezw1v30a.zip / QB.BI < prev    next >
Text File  |  1990-06-02  |  2KB  |  71 lines

  1. '***************************************************************************
  2. ' QB.BI - Assembly Support Include File
  3. '
  4. '       Copyright <C> 1987 Microsoft Corporation
  5. '
  6. ' Purpose:
  7. '      This include file defines the types and gives the DECLARE
  8. '       statements for the assembly language routines ABSOLUTE,
  9. '       INTERRUPT, INTERRUPTX, INT86OLD, and INT86XOLD.
  10. '
  11. '***************************************************************************
  12. '
  13. ' Define the type needed for INTERRUPT
  14. '
  15. TYPE RegType
  16.     ax    AS INTEGER
  17.     bx    AS INTEGER
  18.     cx    AS INTEGER
  19.     dx    AS INTEGER
  20.     bp    AS INTEGER
  21.     si    AS INTEGER
  22.     di    AS INTEGER
  23.     flags AS INTEGER
  24. END TYPE
  25. '
  26. ' Define the type needed for INTERUPTX
  27. '
  28. TYPE RegTypeX
  29.     ax    AS INTEGER
  30.     bx    AS INTEGER
  31.     cx    AS INTEGER
  32.     dx    AS INTEGER
  33.     bp    AS INTEGER
  34.     si    AS INTEGER
  35.     di    AS INTEGER
  36.     flags AS INTEGER
  37.     ds    AS INTEGER
  38.     es    AS INTEGER
  39. END TYPE
  40. '
  41. '                 DECLARE statements for the 5 routines
  42. '                 -------------------------------------
  43. '
  44. ' Generate a software interrupt, loading all but the segment registers
  45. '
  46. DECLARE SUB INTERRUPT (intnum AS INTEGER, inreg AS RegType, outreg AS RegType)
  47. '
  48. ' Generate a software interrupt, loading all registers
  49. '
  50. DECLARE SUB INTERRUPTX (intnum AS INTEGER, inreg AS RegTypeX, outreg AS RegTypeX)
  51. '
  52. ' Call a routine at an absolute address.
  53. ' NOTE: If the routine called takes parameters, then they will have to
  54. '       be added to this declare statement before the parameter given.
  55. '
  56. DECLARE SUB ABSOLUTE (address AS INTEGER)
  57. '
  58. ' Generate a software interrupt, loading all but the segment registers
  59. '       (old version)
  60. '
  61. DECLARE SUB INT86OLD (intnum AS INTEGER, inarray() AS INTEGER, outarray() AS INTEGER)
  62. '
  63. ' Gemerate a software interrupt, loading all the registers
  64. '       (old version)
  65. '
  66. DECLARE SUB INT86XOLD (intnum AS INTEGER, inarray() AS INTEGER, outarray() AS INTEGER)
  67. '
  68.  
  69.  
  70.  
  71.